[XEN][POWERPC] Allocate more memory than RMA for Dom0
authorJimi Xenidis <jimix@watson.ibm.com>
Sun, 27 Aug 2006 20:12:00 +0000 (16:12 -0400)
committerJimi Xenidis <jimix@watson.ibm.com>
Sun, 27 Aug 2006 20:12:00 +0000 (16:12 -0400)
commita1e0327056800aae0cf2e71b5c3fe0ca54ac7f65
tree3f77bb134db3ef54c264a73a093af9b1df4f7760
parent7d493031db511b4f8785006f7375d3bd2c4052da
[XEN][POWERPC] Allocate more memory than RMA for Dom0

The following patch will only effect Dom0 at the moment and allow it
to be created with memory larger than RMA.  It works by allocating
extents (AKA chunks) of memory of an order specified by the processor.
The extent size should be a value that is capabable of mapping a
"large page" so we use the 970s large page size.  These extents are
tracked by an extents list that simply tracks these page allocations
and what there mapping is.  Other sub-systems effected by this:
  - Dom0 OFD devtree /memory cleanup
  - log_large_page_sizes is now an array
  - Config for minumum Dom0 size

Caveats:
 - There is a hack around HTAB allocation because we currently
   allocate one at domain creation time, this will be correct by a
   patch to follow.
 - Dom0, or domains capable of mapping mfns byt have their extents be
   PFN=MFN

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
13 files changed:
xen/arch/powerpc/Makefile
xen/arch/powerpc/domain.c
xen/arch/powerpc/domain_build.c
xen/arch/powerpc/memory.c
xen/arch/powerpc/mm.c
xen/arch/powerpc/ofd_fixup.c
xen/arch/powerpc/ofd_fixup_memory.c [new file with mode: 0644]
xen/arch/powerpc/oftree.h
xen/arch/powerpc/powerpc64/ppc970.c
xen/include/asm-powerpc/config.h
xen/include/asm-powerpc/domain.h
xen/include/asm-powerpc/mm.h
xen/include/asm-powerpc/processor.h